package com.ruoyi.moon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息对象 moon_notice
 * 
 * @author admin
 * @date 2024-11-08
 */
public class MoonNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String noticeTitle;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String noticeContent;

    /** 消息接收人ID */
    private Long userId;

    /** 接收消息客户 */
    private Long companyId;

    /** 消息类型：1：个人，2：客户 */
    private Long noticeType;

    /** 消息状态（0：未读，1：已读） */
    private Integer noticeState;

    /** 消息模版：模板编号 */
    private Long noticeTemplate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNoticeTitle(String noticeTitle) 
    {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeTitle() 
    {
        return noticeTitle;
    }
    public void setNoticeContent(String noticeContent) 
    {
        this.noticeContent = noticeContent;
    }

    public String getNoticeContent() 
    {
        return noticeContent;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setNoticeType(Long noticeType) 
    {
        this.noticeType = noticeType;
    }

    public Long getNoticeType() 
    {
        return noticeType;
    }
    public void setNoticeState(Integer noticeState) 
    {
        this.noticeState = noticeState;
    }

    public Integer getNoticeState() 
    {
        return noticeState;
    }
    public void setNoticeTemplate(Long noticeTemplate) 
    {
        this.noticeTemplate = noticeTemplate;
    }

    public Long getNoticeTemplate() 
    {
        return noticeTemplate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("noticeTitle", getNoticeTitle())
            .append("noticeContent", getNoticeContent())
            .append("userId", getUserId())
            .append("companyId", getCompanyId())
            .append("noticeType", getNoticeType())
            .append("noticeState", getNoticeState())
            .append("noticeTemplate", getNoticeTemplate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
